
fn main() {
    let opts = hiopt::options!["a", "b:"];
    let args = unsafe { hiopt::raw_args_from_i8(hictor::args()) };
    for opt in opts.opt_iter(args) {
        println!("opt: {opt:?}");
        if let Ok((idx, arg)) = opt {
            println!("{} = {arg:?}", opts[idx].name);
        }
    }
    for arg in opts.noopt_iter(args) {
        println!("arg: {arg:?}");
    }
}
